// @ts-nocheck
import * as http from '@/tools/http'
import {postFile} from "@/tools/http";



/*获取全部蓝牌地址*/
export async function queryAddress(params: object) {
  return http.get('/api/resource/address',params)
}

/*新建蓝牌地址*/
export async function createAddress(params: object) {
  return http.post('/api/resource/address',params)
}

/*修改蓝牌地址*/
export async function modifyAddress(params: object) {
  return http.put('/api/resource/address',params)
}

/*查询蓝牌地址根据园区*/
export async function queryAddressByCommunity(params: object) {
  return http.get('/api/resource/queryAddressByCommunity',params)
}

/*查询蓝牌地址根据名称*/
export async function queryAddressByName(params: object) {
  return http.get('/api/resource/queryAddressByName',params)
}

/*查询地址根据蓝牌ID*/
export async function getAddressById(params: object) {
  return http.get('/api/resource/getAddressById',params)
}

export async function delAddress(params: object) {
  return http.del('/api/resource/address',params)
}

/*导入资源表*/
export async function importResource(params: object) {
  return http.post('/api/resource/importResource',params)
}


/*下载资源表样例*/
export async function downloadResource(params: object) {
  return http.get('/api/resource/downloadResource',params)
}



